package com.heei.controller;

import com.heei.client.DcClient;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-cloud-learning
 * @description: Eureka-consumer-feign 消费者接口
 * @author: HuPing
 * @create: 2020-10-22 15:59
 **/
@RestController
public class DcController {

    @Autowired
    DcClient dcClient;

    @GetMapping("/consumer")
    public String consumer() {
        return dcClient.consumer();
    }
}
